import Vue from 'vue'
import VueRouter from 'vue-router'
import HelloWorld from '../components/HelloWorld'
import comments from '../components/comments'


Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'home',
        component: HelloWorld,
    },
    {
        path: '/comments',
        name: 'comments',
        component: comments
    }

]

const router = new VueRouter({
    routes
})

export default router